@import "../../variables.scss";

.el-input {
    &.sc-input {
        background-color: $bgColorGray;
        height: 32px;
        border-radius: 4px;

        .el-input__inner {
            background-color: $bgColorGray;
            height: 32px;
            line-height: 32px;
        }

        .el-input__icon {
            line-height: 32px;
        }

        &.is-disabled {
            .el-input__inner {
                background: $inputbg;
                border: $inputbg;
                color: $disableText;
            }
        }
    }
}

.el-input,
.el-input-number {
    --inputHeight: 20px;


    &.sc-input-transparent {
        &.large {
            --inputHeight: 32px;
        }

        height: var(--inputHeight);
        line-height: 0;

        .el-input__inner {
            height: var(--inputHeight);
            line-height: var(--inputHeight);
            background-color: transparent;
            text-align: left;
            padding: 0;
        }

        &.el-input--prefix {
            .el-input__inner {
                padding-left: 18px;
            }
        }

        &.el-input--suffix {
            .el-input__inner {
                padding-right: 18px;
            }
        }

        .el-input__prefix {
            left: 0;
        }

        .el-input__icon {
            width: 14px;
            line-height: var(--inputHeight);
        }
    }
}

.sc-password {
    text-security: disc;
    -webkit-text-security: disc;
}

/** 模拟输入框样式 */
.sc-input-container {
    padding: 2px 16px;
    border-radius: 4px;
    background-color: $bgColorGray;
    user-select: none; // 防止可输入的内容外还可以选中光标

    &.deep {
        background-color: $bgColorDeep;
    }
}